<!DOCTYPE HTML>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <title>SpringBoot模版渲染</title>
    <script type="text/javascript" th:src="@{/js/main.js}"></script>
    <meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/>
</head>
<body>
<h2>踢出标记：<span th:text="${#httpServletRequest.getParameter('kickmsg')}"></span></h2>
<h1>用户登录表单、<span th:text="${error}"/></h1>
<form th:action="@{/loginForm}" method="post">
    登录名：<input type="text" name="mid" /><br/>
    密&nbsp;码：<input type="password" name="password" /><br/>
    <input type="submit" value="登录"/>
</form>
</body>
</html>